        <div class="thumbsec">
          
            <!--------- Begin div product image ------>   
            <?php
            if (tep_not_null($product_info['products_image'])) {
                $pi_query = tep_db_query("select image, htmlcontent, s_image, l_image from " . TABLE_PRODUCTS_IMAGES . " where products_id = '" . (int) $product_info['products_id'] . "' order by sort_order");

                if (tep_db_num_rows($pi_query) > 0) {//style="float: left;
                    ?>
                    <!-- div id="piGalNew" class="svwp">
                       <div id="gallery">
                        <ul -->
                 <div style="float: left; margin-top: 9px; position: relative;">
                    <div id="piGalNew" class="svwp">
                        <ul id="player_images">    
                            <?php
                            $pi_counter = 0;
                            while ($pi = tep_db_fetch_array($pi_query)) {
                                $pi_counter++; //DIR_WS_IMAGES
                                $pi_entry = '<a href="' . $pi['image'] . '" title="' . $product_info['products_name'] . '" rel="lightbox"><li>' . tep_image_slider( $pi['image'], $product_info['products_name'], '285', '200');//DIR_WS_IMAGES .
                                if(is_string ($pi['l_image']) && ($pi['l_image']!='')){
                                    $pi_entry .= '<div style="display: none;" class="image_hidden">' . tep_image_slider( $pi['l_image'], $product_info['products_name'], '62', '42') . '</div>';
                                }else{ //DIR_WS_IMAGES .
                                    $pi_entry .= '<div style="display: none;" class="image_hidden">' . tep_image( $pi['image'], $product_info['products_name'], '62', '42') . '</div>';
                                }
                                
                                if (tep_not_null($pi['htmlcontent'])) {
                                    $pi_entry .= '<div style="display: none;"><div id="piGalimg_' . $pi_counter . '">' . $pi['htmlcontent'] . '</div></div>';
                                }
                                $pi_entry .= '</li></a>';

                                echo $pi_entry;
                            }
                            ?>
                        </ul>                    
                    </div> 
                    
                  </div>  
                    <script type="text/javascript">  
                    //BOF - slider thumbs                                
                    
                        $('#piGal ul').bxGallery({
                            maxwidth: 300,
                            maxheight: 200,
                            thumbwidth: <?php echo (($pi_counter > 1) ? '50' : '0'); ?>,
                            thumbcontainer: 300,
                            thumbcrop:false,
                            thumbplacement: 'bottom', 
                            load_image: 'ext/jquery/bxGallery/spinner.gif'
                        });
                    </script>

                    <?php
                } else { //DIR_WS_IMAGES . DIR_WS_IMAGES . 
                    ?>
                    <!--div id="piGal" style="float: left;"-->
				<div style="float: left; margin-top: 9px; position: relative;">
                   <div id="piGalNew" class="svwp">
                      <ul id="player_images">                    
                        <?php echo '<a href="' . tep_href_link($product_info['products_image']) . '" target="_blank" rel="fancybox">' . tep_image($product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '</a>'; ?>
                        </ul>
                    </div>
                  </div>  
                    <?php
                    //products_id
                }
                ?>

                <script type="text/javascript">
                    $("#piGal a[rel^='fancybox']").fancybox({
                        cyclic: true
                    });
                </script>

                <?php
            }
            ?>
            <!--------- End div gallary image ------>
            <!--div class="exemple">	
                <div class="star_rating" id="<?php echo $p_rating; ?>_1"></div>
                <span class="reviews"><?php echo $p_rating . ' out of 5 stars'; ?></span>	
            </div>    
            <div class="products_review">(Base on <?php echo $p_review; ?> Experiences)
            </div-->
        </div>

        <div class="descshort">
            <div class="title_prod"><?php echo $products_name; ?></div>                              
            <div class="manufac">by <a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manu_id); ?>"><?php echo $manufacture['manufacturers_name']; ?></a></div>

            <hr  noshade="noshade" size="1"/>          
            <div class="prices">
                <?php echo SPOT_PRICE; ?> : <span class="newprice"><?php echo $products_price; ?></span>
                <?php echo NORMAL_PRICE; ?> : <span class="oldprice"> <?php echo $p_price2; ?></span>  
            </div>

            <hr  noshade="noshade" size="1"/>

            <div class="instock">
                <div class="status"><?php echo $in_stock; ?></div>
                <div class="tip_stock">
                    <?php echo '<a href="javascript:void(0);" class="tooltip">' . tep_image(DIR_WS_IMAGES . 'layout/tip.png') . '<span class="classic">' . $tip_in_stock . '</span>' . '</a>'; ?>

                </div>

                <div class="addcart"><?php echo TEXT_QUANTITY; ?>
                    <input type="text" name="cart_quantity[]" id = "cart_quantity" value="0" size="4"/>
                    <input type="hidden" name="products_id[]" value=""/>
                    <input type="hidden" name="products_charges[]" id="products_charges" value="<?php echo $charges; ?>"/>
                </div>  
            </div> 

            <hr noshade="noshade" size="1"/>

            <div class="freight">
                <p>Freight Information:</p>

                <div class="line">
                    <span class="label_info">Country</span><?php echo tep_get_country_list('entry_country_id', tep_get_countries()); ?> 
                </div>
                <?php
                $currencies_array = $currencies->currencies;
                $cCurrentcy = $currencies_array[$currency];
                ?>
                <div class="line">
                    <span class="label_info">Freight</span><select style="width:180px; vertical-align:top" name="cboFreight" id="cboFreight"><option value="3" selected="">Fedex Courier Service</option><option value="8">DHL Courier Service</option><option value="19">Local Pickup</option></select>                        <?php echo tep_draw_button(IMAGE_BUTTON_OK, '', 'calculator_charges(' . $cCurrentcy['decimal_places'] . ',\'' . TEXT_ERROR_INPUT_NUMBERIC . '\');','','',TRUE); ?>  
                </div>

                <div class="line">
                    <span class="label_info">Charges</span>

                    <span class="newprice"><?php echo $cCurrentcy['symbol_left']; ?><span id="display_changes"><?php echo number_format($charges, $cCurrentcy['decimal_places']); ?></span><?php echo $cCurrentcy['symbol_right']; ?></span>                            
                </div>
            </div> 
            <div class="clear"></div>
        </div>
        
        
   <div id="gallery">
                        <ul>
                            <a href="http://ecx.images-amazon.com/images/I/41tSyH5HHiL._SL75_AA30_.jpg " title="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" rel="lightbox"><li><img src="http://ecx.images-amazon.com/images/I/41tSyH5HHiL._SL75_AA30_.jpg" alt="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" title=" Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION) " width="285" height="200" /><div style="display: none;" class="image_hidden"><img src="http://ecx.images-amazon.com/images/I/41tSyH5HHiL._SL500_AA300_.jpg" alt="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" title=" Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION) " width="62" height="42" /></div><a href="http://ecx.images-amazon.com/images/I/41tSyH5HHiL._SL500_AA300_.jpg  " title="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" rel="lightbox"><li><img src="http://ecx.images-amazon.com/images/I/41tSyH5HHiL._SL500_AA300_.jpg" alt="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" title=" Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION) " width="285" height="200" /><div style="display: none;" class="image_hidden"><img src="http://ecx.images-amazon.com/images/I/41tSyH5HHiL.jpg" alt="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" title=" Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION) " width="62" height="42" /></div><a href=" http://ecx.images-amazon.com/images/I/41FYocksuoL._SL75_AA30_.jpg " title="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" rel="lightbox"><li><img src="http://ecx.images-amazon.com/images/I/41FYocksuoL._SL75_AA30_.jpg" alt="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" title=" Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION) " width="285" height="200" /><div style="display: none;" class="image_hidden"><img src="http://ecx.images-amazon.com/images/I/41FYocksuoL._SL500_AA300_.jpg" alt="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" title=" Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION) " width="62" height="42" /></div><a href="  http://ecx.images-amazon.com/images/I/41FYocksuoL._SL500_AA300_.jpg  " title="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" rel="lightbox"><li><img src="http://ecx.images-amazon.com/images/I/41FYocksuoL._SL500_AA300_.jpg" alt="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" title=" Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION) " width="285" height="200" /><div style="display: none;" class="image_hidden"><img src="http://ecx.images-amazon.com/images/I/41FYocksuoL.jpg" alt="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" title=" Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION) " width="62" height="42" /></div><a href=" http://ecx.images-amazon.com/images/I/21%2B-VY1qk5L._SL75_AA30_.jpg " title="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" rel="lightbox"><li><img src="http://ecx.images-amazon.com/images/I/21%2B-VY1qk5L._SL75_AA30_.jpg" alt="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" title=" Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION) " width="285" height="200" /><div style="display: none;" class="image_hidden"><img src="http://ecx.images-amazon.com/images/I/21%2B-VY1qk5L._SL500_AA300_.jpg" alt="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" title=" Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION) " width="62" height="42" /></div><a href="  http://ecx.images-amazon.com/images/I/21%2B-VY1qk5L._SL500_AA300_.jpg  " title="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" rel="lightbox"><li><img src="http://ecx.images-amazon.com/images/I/21%2B-VY1qk5L._SL500_AA300_.jpg" alt="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" title=" Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION) " width="285" height="200" /><div style="display: none;" class="image_hidden"><img src="http://ecx.images-amazon.com/images/I/21%2B-VY1qk5L.jpg" alt="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" title=" Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION) " width="62" height="42" /></div><a href=" http://ecx.images-amazon.com/images/I/41Vx4fYHqmL._SL75_AA30_.jpg " title="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" rel="lightbox"><li><img src="http://ecx.images-amazon.com/images/I/41Vx4fYHqmL._SL75_AA30_.jpg" alt="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" title=" Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION) " width="285" height="200" /><div style="display: none;" class="image_hidden"><img src="http://ecx.images-amazon.com/images/I/41Vx4fYHqmL._SL500_AA300_.jpg" alt="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" title=" Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION) " width="62" height="42" /></div><a href="  http://ecx.images-amazon.com/images/I/41Vx4fYHqmL._SL500_AA300_.jpg  " title="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" rel="lightbox"><li><img src="http://ecx.images-amazon.com/images/I/41Vx4fYHqmL._SL500_AA300_.jpg" alt="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" title=" Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION) " width="285" height="200" /><div style="display: none;" class="image_hidden"><img src="http://ecx.images-amazon.com/images/I/41Vx4fYHqmL.jpg" alt="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" title=" Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION) " width="62" height="42" /></div><a href=" http://ecx.images-amazon.com/images/I/21bum3Bl3IL._SL75_AA30_.jpg" title="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" rel="lightbox"><li><img src="http://ecx.images-amazon.com/images/I/21bum3Bl3IL._SL75_AA30_.jpg" alt="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" title=" Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION) " width="285" height="200" /><div style="display: none;" class="image_hidden"><img src="http://ecx.images-amazon.com/images/I/21bum3Bl3IL._SL500_AA300_.jpg" alt="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" title=" Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION) " width="62" height="42" /></div><a href="  http://ecx.images-amazon.com/images/I/21bum3Bl3IL._SL500_AA300_.jpg" title="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" rel="lightbox"><li><img src="http://ecx.images-amazon.com/images/I/21bum3Bl3IL._SL500_AA300_.jpg" alt="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" title=" Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION) " width="285" height="200" /><div style="display: none;" class="image_hidden"><img src="http://ecx.images-amazon.com/images/I/21bum3Bl3IL.jpg" alt="Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION)" title=" Apple MacBook Pro MD311LL/A 17-Inch Laptop (NEWEST VERSION) " width="62" height="42" /></div>                      </ul>  
                        </div>
